﻿using System;

class NumbersBetween
{
    static void Main()
    {
        int number1, number2, changeValues;
        int count = 0;
        Console.WriteLine("Enter two number:");
        Console.Write("Enter number: ");
        number1 = int.Parse(Console.ReadLine());
        Console.Write("Enter number: ");
        number2 = int.Parse(Console.ReadLine());

        if (number1 > number2)
        {
            changeValues = number1;
            number1 = number2;
            number2 = changeValues;
        }

        for (int i = number1; i <= number2; i++)
        {
            if (i % 5 == 0)
            {
                count++;
            }
        }
        Console.WriteLine("Numbers between {0} and {1} such that the remainder of the division by 5 is 0(inclusive):", number1, number2);
        Console.WriteLine("P = " + count);
    }
}

